import request from '@/utils/request'

// 面单管理-列表
export const billList = (type, data) =>
  request({
    url: `/bill/${type}/index`,
    method: 'post',
    data,
  })

// 面单管理-详情
export const billDetail = (type, params) =>
  request({
    url: `/bill/${type}/detail`,
    method: 'get',
    params,
  })

// 面单管理-创建
export const billCreate = (type, data) =>
  request({
    url: `/bill/${type}/create`,
    method: 'post',
    data,
  })

// 面单管理-创建
export const billUpdate = (type, data) =>
  request({
    url: `/bill/${type}/update`,
    method: 'post',
    data,
  })

// 面单管理-删除
export const billDelete = (type, data) =>
  request({
    url: `/bill/${type}/delete`,
    method: 'post',
    data,
  })

// 面单管理-启用禁用
export const billStatus = (type, data) =>
  request({
    url: `/bill/${type}/status`,
    method: 'post',
    data,
  })
